# Tanım: Zindan oyunu
# URL: http://crawl.develz.org/
# Paketçi: milisarge
# Gerekler:  sdl-image sdl dejavu-ttf xorg-glu xorg-mesa glew dejavu-ttf
# Grup: oyun

isim=crawl-tiles
surum=0.15.2
devir=1
kaynak=(http://sourceforge.net/projects/crawl-ref/files/Stone%20Soup/$surum/stone_soup-${surum}.tar.xz)

derle() {

    cd stone_soup-$surum/source

    sed -i Makefile \
        -e 's|bin_prefix    := bin|bin_prefix    := usr/bin|' \
	-e 's/INSTALL_UGRP := games:games/INSTALL_UGRP := root:root/' \
	-e 's|MCHMOD := 2755|MCHMOD := 755|'

    make DESTDIR=$PKG \
	 DATADIR=/usr/share/$isim \
	 SAVEDIR='~/.crawl/' \
	 USE_UNICODE=y \
	 TILES=y \
	install
    mv $PKG/usr/bin/crawl $PKG/usr/bin/crawl-tiles

}
